<style>
    .form-group{margin-bottom: 10px;}
    .models input[type=checkbox]{float: left;margin-left: -20px;}
    .checkbox-inline+.checkbox-inline, .radio-inline+.radio-inline{margin-left: 0;}
    .required{color:red;}
</style>
<input type="hidden" name="id" id="createspreadid">

{volist name="dataArr" id="vo"}
{php}$input_name = $key;{/php}
{if $input_name == 'type'}
    <input type="hidden" name="type" value="{$typeid}">
{else/}
    <div class="form-group models">
        <label class="control-label col-sm-2">
            {if $arrD[$input_name]['required'] == 1}<span class="required">*</span>{/if} {$arrD[$key]['name']}</label>
        <div class="col-sm-10">
            <!-- <label class="radio-inline">
                <input type="radio" checked="true" name="name" id="name"  value="男频"/>
                <span>男频</span>
            </label> -->
            
                {volist name="dataArr[$key]" id="sub" key="k"}
                    {if $sub['id'] != 999999}
                        <label class="radio-inline">
                            <input type="{$arrD[$input_name]['input_type']}" {if $sub['ischecked'] ==1 }checked="true"{/if} name="{$input_name}" value="{$sub.id}"/>
                            <span>{$sub.name}</span>
                            
                        </label>
                    {/if}
                {/volist}
        
        </div>
    </div>
{/if}
{/volist}

{if input('get.platform_ids') == 3}
<div class="form-group">
    <label class="control-label col-sm-2">标题</label>
    <div class="col-sm-10">
            <input type="text" class="form-control" name="title" value="" placeholder="抖音文案1"/>
    </div>
</div>
{/if}

{if stristr(ACTION_NAME, 'index')}
<div class="form-group">
    <label class="control-label col-sm-2"><span class="required">评分</label>
    <div class="col-sm-3">
        <input type="text" class="form-control" id="score"  name="score" value="0" placeholder=""/>
    </div>
</div>
{/if}
<div class="form-group">
    <label class="control-label col-sm-2">文案</label>
    <div class="col-lg-8">
        <textarea class="form-control" name="content" id="content" placeholder=""></textarea>
    </div>
</div>
{if stristr(ACTION_NAME, 'index')}
<div class="form-group" id="batchtxt">
    <label class="control-label col-sm-2">批量上传</label>
    <div class="col-lg-8">
        <div class="picker-box">
            <div id="picker_ebook" class="picker_button">上传文案 </div>
            <input type="hidden" name="ebook" id="field_ebook" value="">
            {if in_array(input('get.platform_ids'), [1, 2])}
            <div id="fileList_ebook" class="upload-file-list-info" >(请上传.txt文件， 1行一个文案)</div>
            {/if}

            {if in_array(input('get.platform_ids'), [3, 4])}
            <div id="fileList_ebook" class="upload-file-list-info" >(请上传.txt文件， 以@@分开)</div>
            {/if}
        </div>

    </div>
</div>
{/if}

{if stristr(ACTION_NAME, 'img')}

{/if}